package org.example.entity;

import org.springframework.data.solr.core.mapping.SolrDocument;

import java.util.Date;

/**
 * @author GuoChunbo
 * @create 2021-03-16 17:04
 * @Description: 类的描述
 */
@SolrDocument(collection = "news_core")
public class NewsSaveEntity extends News {

    @Override
    public String getId() {
        return super.getNid().toString();
    }

    @Override
    public String getTitle() {
        return super.getNtitle();
    }

    @Override
    public String getAuthor() {
        return super.getNauthor();
    }

    @Override
    public Date getCreateDate() {
        return super.getNcreateDate();
    }
}
